
package com.kugou.game.sdk.statistics;

import com.kugou.framework.utils.UrlEncodeUtil;

import android.content.Context;

import java.util.HashMap;

/**
 * 描述:游戏操作统计
 *
 * @author jerryliu
 * @since 2015年11月17日 上午10:48:51
 */
public class StatGameOperationTask extends AbsStatisticsTask {

    private String rolename;

    private int rolelevel, statid;

    public StatGameOperationTask(Context context, String rolename, int rolelevel, int statid) {
        super(context);
        this.rolename = rolename;
        this.rolelevel = rolelevel;
        this.statid = statid;
    }

    @Override
    public void initParams(HashMap<String, String> params) {
        params.put("rolename", UrlEncodeUtil.encode(rolename == null ? "" : rolename, "utf-8"));
        params.put("rolelevel", rolelevel + "");
        params.put("statid", statid + "");
    }
}
